package com.sh.data.engine.domain.datadev.offline.model.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
//@ApiModel
public class OfflineDevTaskFlowVNodeConfigSaveParam {

    @NotNull(message = "开始节点id不能为空")
//    @ApiModelProperty(value = "开始节点id", required = true)
    private Long nodeId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Date effectiveDateStart;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Date effectiveDateEnd;

    //    @ApiModelProperty(value = "工作流Id")
    private Long taskFlowId;

    private Integer cycle;

    private Integer startTimeHour;

    private Integer startTimeMin;

    private Integer endTimeHour;

    private Integer endTimeMin;

    private String execPoint;

    @NotNull(message = "周期依赖不能为空")
//    @ApiModelProperty(
//        value = "周期依赖,0-不依赖上一调度周期 1-等待上一周期结束再运行",
//        required = true,
//        allowableValues = "0,1")
    private Integer cycleDependency;
}
